package com.amado.course43awt;

import java.awt.*;
public class Ontrack extends Frame
{
	Ontrack(String name)
	{
		super(name);
		Panel pUp = new Panel();
		Panel pUps = new Panel();
		Panel pRight = new Panel();
		Panel pRights = new Panel();
		Panel pCenter = new Panel();
		Panel pCenters = new Panel();
		Panel pCenterUp = new Panel();
		setLayout(new BorderLayout());
		add(pUp,BorderLayout.NORTH);
		add(pRight,BorderLayout.WEST);
		add(pCenter,BorderLayout.CENTER);
		pUp.setLayout(new BorderLayout());
		pUp.add(new Panel(),BorderLayout.NORTH);
		pUp.add(pUps,BorderLayout.CENTER);
		pUps.setLayout(new GridLayout(1,8));
		pUps.add(new Label("Ontarck",Label.CENTER));
		pUps.add(new Panel());
		pUps.add(new Panel());
		pUps.add(new Label("首页"));
		pUps.add(new Panel());
		pUps.add(new Panel());
		pUps.add(new Label("？帮助"));
		pUps.add(new Label("退出"));
		
		pRight.setLayout(new BorderLayout());
		pRight.add(new Panel(),BorderLayout.WEST);
		pRight.add(pRights,BorderLayout.CENTER);
		pRight.add(new Panel(),BorderLayout.EAST);
		pRights.setLayout(new GridLayout(9,1,1,10));
		pRights.add(new Panel());
		pRights.add(new Button("磁盘诊断"));
		pRights.add(new Button("数据恢复"));
		pRights.add(new Button("文件修复"));
		pRights.add(new Button("Eail  修复"));
		pRights.add(new Button("软件升级"));
		pRights.add(new Button("救援中心"));
		pRights.add(new Panel());
		pRights.add(new Panel());
		
		pCenter.setLayout(new BorderLayout(5,1));
		pCenter.add(pCenterUp,BorderLayout.NORTH);
		pCenter.add(pCenters,BorderLayout.CENTER);
		pCenterUp.setLayout(new GridLayout(1,8));
		pCenterUp.add(new Panel());
		pCenterUp.add(new Panel());
		pCenterUp.add(new Label("快速升级"));
		pCenterUp.add(new Panel());
		pCenterUp.add(new Label("属性设置"));
		pCenterUp.add(new Panel());
		pCenterUp.add(new Label("快速启动"));
		pCenterUp.add(new Panel());

		pCenters.setLayout(new GridLayout(8,2));
		pCenters.add(new Label("数据恢复",Label.CENTER));
		pCenters.add(new Panel());
		pCenters.add(new Panel());
		pCenters.add(new Panel());
		pCenters.add(new Label("高级恢复",Label.CENTER));
		pCenters.add(new Label("删除恢复",Label.CENTER));
		pCenters.add(new Panel());
		pCenters.add(new Panel());
		pCenters.add(new Label("格式恢复",Label.CENTER));
		pCenters.add(new Label("Raw  恢复",Label.CENTER));
		pCenters.add(new Panel());
		pCenters.add(new Panel());
		pCenters.add(new Label("继续恢复",Label.CENTER));
		pCenters.add(new Label("紧急启动盘",Label.CENTER));
		pCenters.add(new Panel());
		pCenters.add(new Panel());

		pCenters.setBackground(new Color(230,230,230));
		pUps.setBackground(new Color(35,207,138));
		setBackground(Color.gray);
		setBounds(140,120,650,500);
		show();
	}
	public static void main(String[] args) 
	{
		new Ontrack("Ontrack");
	}
}
